package com.cqjtu.eecs.mapper;

import com.cqjtu.eecs.entity.Requirement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cqjtu.eecs.entity.dto.RequirementDTO;
import com.cqjtu.eecs.entity.vo.GraduateRequirementDetailVo;
import com.cqjtu.eecs.entity.vo.RequirementVO;

import java.util.List;

/**
 * <p>
 * 毕业要求 Mapper 接口
 * </p>
 *
 * @author    学知
 * @since 2022-03-07
 */
public interface RequirementMapper extends BaseMapper<Requirement> {

    /**
     * 根据版本号查询毕业要求
     * @param pid
     * @return
     */
    List<RequirementVO> getRequirementByPid(String pid);

    List<RequirementDTO> getPreRequirementByPid(String pid);
}
